package com.example.kugou.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 歌手
 */
@ApiModel("歌手")
public class Singer {
    /**
     * 歌手id
     */
    @ApiModelProperty("歌手id")
    private Integer rid;
    /**
     * 歌手名字
     */
    @ApiModelProperty("歌手名字")
    private String singerName;
    /**
     * 外键   对应歌手类别
     */
    @ApiModelProperty("对应歌手类别")
    private Integer swid;
    /**
     * 歌手封面  路径
     */
    @ApiModelProperty("歌手封面路径")
    private  String spic;

    private List<Mv> mvs;

    private String jianjie;

    public Singer(Integer rid, String singerName, Integer swid, String spic, List<Mv> mvs, String jianjie, List<Sing> sings, Singer_category singer_category, List<Album> album) {
        this.rid = rid;
        this.singerName = singerName;
        this.swid = swid;
        this.spic = spic;
        this.mvs = mvs;
        this.jianjie = jianjie;
        this.sings = sings;
        this.singer_category = singer_category;
        this.album = album;
    }

    public String getJianjie() {
        return jianjie;
    }

    public void setJianjie(String jianjie) {
        this.jianjie = jianjie;
    }

    private List<Sing> sings;

    public List<Sing> getSings() {
        return sings;
    }

    public void setSings(List<Sing> sings) {
        this.sings = sings;
    }

    public List<Mv> getMvs() {
        return mvs;
    }

    public void setMvs(List<Mv> mvs) {
        this.mvs = mvs;
    }

    private Singer_category singer_category;

    private List<Album> album;

    public List<Album> getAlbum() {
        return album;
    }

    public void setAlbum(List<Album> album) {
        this.album = album;
    }

    public Singer_category getSinger_category() {
        return singer_category;
    }

    public void setSinger_category(Singer_category singer_category) {
        this.singer_category = singer_category;
    }

    public Singer(Integer rid, String singerName, Integer swid, String spic) {
        this.rid = rid;
        this.singerName = singerName;
        this.swid = swid;
        this.spic = spic;
    }

    public Singer() {
    }

    public Singer(String singerName) {
        this.singerName = singerName;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getSingerName() {
        return singerName;
    }

    public void setSingerName(String singerName) {
        this.singerName = singerName;
    }

    public Integer getSwid() {
        return swid;
    }

    public void setSwid(Integer swid) {
        this.swid = swid;
    }

    public String getSpic() {
        return spic;
    }

    public void setSpic(String spic) {
        this.spic = spic;
    }

    @Override
    public String toString() {
        return "Singer{" +
                "rid=" + rid +
                ", singerName='" + singerName + '\'' +
                ", swid=" + swid +
                ", spic='" + spic + '\'' +
                ", mvs=" + mvs +
                ",\n sings=" + sings +
                ",\n singer_category=" + singer_category +
                ",\n album=" + album +
                '}';
    }
}
